//
//  NYTopicModel.h
//  百思不得姐
//
//  Created by Apple on 15/8/23.
//  Copyright (c) 2015年 Neal. All rights reserved.
//

#import <Foundation/Foundation.h>

typedef enum {
    //1为全部，10为图片，29为段子，31为音频，41为视频，默认为1
    NYTopicCellTypeAll = 1,
    NYTopicCellTypePicture = 10,
    NYTopicCellTypeText = 29,
    NYTopicCellTypeVoice = 31,
    NYTopicCellTypeVideo =41
    
} NYTopicCellType;

@class NYTopConment;
@interface NYTopicModel : NSObject
/* ID */
@property(nonatomic , copy) NSString *ID;
/* 昵称 */
@property(nonatomic , copy) NSString *name;
/* 头像 */
@property(nonatomic , copy) NSString *profile_image;
/* 时间 */
@property(nonatomic , copy) NSString *create_time;
/* 文本 */
@property(nonatomic , copy) NSString *text;
/* 赞 */
@property(nonatomic , assign) NSInteger ding;
/* 踩 */
@property(nonatomic , assign) NSInteger cai;
/* 转发 */
@property(nonatomic , assign) NSInteger repost;
/* 评论 */
@property(nonatomic , assign) NSInteger comment;

/* 热门评论模型 */
@property(nonatomic , strong) NYTopConment *top_cmt;

/* 小图片 */
@property(nonatomic , copy) NSString *smallimage;
/* 中图 */
@property(nonatomic , copy) NSString *mediumimage;
/* 大图 */
@property(nonatomic , copy) NSString *bigimage;

/* type */
@property(nonatomic , assign) NYTopicCellType cellType;
/* gif */
@property(nonatomic , assign) BOOL is_gif;
/* 宽度 */
@property(nonatomic , assign) CGFloat width;
/* 宽度 */
@property(nonatomic , assign) CGFloat height;


/* 音频播放数量 */
@property(nonatomic , assign) NSInteger playcount;

/* 视频时间 */
@property(nonatomic , assign) NSInteger videotime;

/* 视频uri */
@property(nonatomic , copy) NSString *videouri;

/* 音频 */
@property(nonatomic , assign) NSInteger voicetime;

/* 音频uri */
@property(nonatomic , copy) NSString *voiceuri;





/*****************辅助属性********************/
/* cellheight */
@property(nonatomic , assign) CGFloat cellHeight;
/* 中间内容的frame */
@property(nonatomic , assign) CGRect contentFrame;
/* 是否是大图片 */
@property(nonatomic , assign ,getter=isBigPicture) BOOL bigPicture;
/* 进度 */
@property(nonatomic , assign) CGFloat pictureProgress;
@end
